import random
gusstaken = 0


print("Hello ,what's your name?")
yourName = input()

number = random.randint(1, 20)

print("Well ," + yourName + "I am thinking of a number between 1 and 20.")

while gusstaken < 6:
    guss = int(input())

    if guss < number:
        print("Your guss is too small.")
    elif guss > number:
        print("Your guss is too big.")
    else:
        break
    gusstaken = gusstaken + 1


if guss == number:
    gusstaken = str(gusstaken)
    print('Good job, ' + yourName +
          '! You guessed my number in ' + gusstaken + ' guesses!')
if guss != number:
    number = str(number)
    print('Nope. The number I was thinking of was ' + number)
